<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:fragment="head(title,links)">
    <meta charset="UTF-8">
    <title th:replace="${title}">title</title>
    <link rel="stylesheet" type="text/css" media="all" th:href="@{/css/comm.css}">
    <script type="text/javascript" th:src="@{/js/comm.js}"></script>
    <th:block th:replace="${links}"></th:block>
</head>
<body>
<header th:fragment="header">
    <h3>我是 头部</h3>
</header>
</body>
</html>